package com.matol.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.matol.entity.User;

/** 
 *  
 * @author matol 
 * @date 2013-01-23 16:38
 */  
@Transactional
@Repository(value = "userMapper")   
public interface UserMapper {
	Integer create(User user);
	Integer delete(Integer id);
	Integer modify(User user);
	
	User findById(Integer id);
	User findByUser(User user);
	List<User> findAll();
	List<User> findAll(User user);
	
	Integer count();
}
